import {request} from '../utils/tyg-request'

export function indexData() {
  return request({
    url: 'takeout/indexData',
    method: 'get',
    noShowLoading: true,
    data: {
    }
  })
}

export function dayRecommendCookbookList() {
  return request({
    url: 'takeout/dayRecommendCookbookList',
    method: 'get',
    noShowLoading: true,
    data: {
    }
  })
}

export function subscribeMessage(tempmsgId, code) {
  return request({
    url: 'takeout/subscribeMessage',
    method: 'get',
    data: {
      tempmsgId,
      code
    }
  })
}

export function hadSubscribe(code) {
  return request({
    url: 'takeout/hadSubscribe',
    method: 'get',
    noShowLoading: true,
    data: {
      code
    }
  })
}